package com.yazi.mxz.mobile.jackson.filter;

import java.util.HashSet;
import java.util.Set;

import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import com.yazi.mxz.common.entity.beans.MemberSpend;

public abstract class MemberSpendFilter {

	public static FilterProvider get4List() {
		final Set<String> sp = new HashSet<String>();
		sp.add("serialCode");
		sp.add("isChecked");
		sp.add("spend");
		sp.add("spendTime");

		return new SimpleFilterProvider()
				.addFilter(MemberSpend.class.getSimpleName(),
						SimpleBeanPropertyFilter.filterOutAllExcept(sp));
	}

}
